#include "StdAfx.h"
#include "Line.h"

IMPLEMENT_SERIAL(Line, Geometry2D, 0)

Line::Line(void)
{
}

Line::~Line(void)
{
}

void Line::Serialize(CArchive& ar)
{
	ptStart.Serialize(ar);
	ptEnd.Serialize(ar);
}


void Line::Render(CDC* pDC) const
{
	POINT pt;
	pt.x = ptStart.x;
	pt.y = ptStart.y;

	pDC->MoveTo(pt);

	pt.x = ptEnd.x;
	pt.y = ptEnd.y;
	pDC->LineTo(pt);
}
